﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AFCEPF.BankApplication.BLL
{
    public class SimpleAccount : AccountBase
    {

        /// <summary>
        /// ctor.
        /// </summary>
        /// <param name="holder">The Account holder.</param>
        /// <param name="initialDeposit">The initial deposit.</param>
        internal SimpleAccount(Customer holder, double initialDeposit)
            : base(holder, initialDeposit)
        { }
        
        /// <summary>
        /// Gets the authorized overdrawn amount for the current
        /// account type.
        /// This method will be overriden in derived classes.
        /// </summary>
        /// <returns>
        /// the authorized overdrawn amount
        /// </returns>
        public override double GetOverdrawnAmount()
        {
            return 10;
        }
    }
}
